# -*- coding: utf-8 -*-
import random
import time

from method import *

# 获取当前时间戳（秒）
current_timestamp = int(time.time())

print(current_timestamp)
from datetime import datetime
import uuid
# 获取当前日期和时间
now = datetime.now()
# 只获取当前日期
today = now.date()
print( today)
random_uuid = uuid.uuid4()
print("随机UUID:", random_uuid)

a='/employee/'+str(today)+'/'+str(random_uuid)
print(a)

for c in range(1):
    print(c)

l=[]
d={}
d['name']='花花'
d['age']=18
l.append(d)
print(l)
f={}
f['name']='小雨'
f['age']=19
l.append(f)
print(l)
print(f)
f.clear()
print(f)
c=2
file_type=['pdf','jpg','png','docx','xls','xlsx']
bb=str(c)+'.'+random.choice(file_type)
print(bb)

user=[
                        {'userId': 410, 'userNumber': '16876', 'userName': '王小青',},
                        {'userId': 411, 'userNumber': '16888', 'userName': '吴少君'},
                        {'userId': 412, 'userNumber': '16887', 'userName': '张小蕙'},
                        {'userId': 413, 'userNumber': '16911', 'userName': '刘卉'},
                        {'userId': 421, 'userNumber': '17030', 'userName': '李亮'},
                        {'userId': 423, 'userNumber': '17037', 'userName': '黄夏桐'},
                        {'userId': 425, 'userNumber': '17356', 'userName': '周波'},
                    ]

print(user[0]['userName']+':'+'加签成功')
config=['154','http://172.16.91.154/']
audit_id=12354
url = config[1]+"new/oa_audit/audit/findAuditFlowByAuditId?auditId=%s"%(audit_id)
print(url)

a=8
try:
    assert a==9
    print('hhh')
except :
    print('ds')

def complexFunc(*args,**kwargs):
    print(args)
    print(kwargs)
    pass

complexFunc(name = "huahua",age = 10)
complexFunc('uu',7,'yty')

a=(1,2,3,'io')
print(list(a))

def tt():
    a=1
    b=2
    c=3
    return a,b,c
a=tt()
print(list(a)[1])

b=1045.7
a1=23235.123456
print('毛利率是： '+str(round(b/a1*100,2))+'%')
# b1=b/a1*100
# print(b1)


aaa={
  "login": {
    "url": "http://172.16.91.154/new/oa_auth/login",
    "method": "post",
    "headers": {
      "Content-Type": "application/json"
    },
    "data": {
      "password": "inx/oXug2AB9Oz/Uhvza++kzlE903NwUMKd2JYPq6ZfRhm5qBENBzksxTNsHTFsz66hSv+bPmenfrMtXU0Flr4SUxMEL0m+HBlsvf/9tSxdGqLpjih58tJOF5fO5O4vowyMiYfFxjYrJnUEFRquUHyP6GxDK2d8/KMx2sVCkqWfOb2r4hpLKGZd3zNmeoV5VpyZuegdJlb5L6RNcTJGL15YsLv9Ksb+1NJyoaygn2tKSnHYp6C7V2v6ErkB0JXYNWd+y6QO7WSIJYPNQ3N6p9x6X6jv3FZXCorrES/p5Y2PxXdYwN4E1jqbtU/BnhhCtgZfBUPj5gHEFjwsuc/D7QA==",
      "userNumber": "20280",
      "code": "",
      "uuid": ""
    },
    "expect": 200
  },
  "login111": {
    "url": "http://172.16.91.154/new/oa_auth/login",
    "method": "post",
    "headers": {
      "Content-Type": "application/json"
    },
    "data": {
      "password": "inx/oXug2AB9Oz/Uhvza++kzlE903NwUMKd2JYPq6ZfRhm5qBENBzksxTNsHTFsz66hSv+bPmenfrMtXU0Flr4SUxMEL0m+HBlsvf/9tSxdGqLpjih58tJOF5fO5O4vowyMiYfFxjYrJnUEFRquUHyP6GxDK2d8/KMx2sVCkqWfOb2r4hpLKGZd3zNmeoV5VpyZuegdJlb5L6RNcTJGL15YsLv9Ksb+1NJyoaygn2tKSnHYp6C7V2v6ErkB0JXYNWd+y6QO7WSIJYPNQ3N6p9x6X6jv3FZXCorrES/p5Y2PxXdYwN4E1jqbtU/BnhhCtgZfBUPj5gHEFjwsuc/D7QA==",
      "userNumber": "20280",
      "code": "",
      "uuid": ""
    },
    "expect": 200
  }
}

print(aaa)
write_yaml(r'D:\python\pythonProject\test\add_employee_requests.yaml', aaa)
